home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / cmsrc392.zip / ROMAN.MF < prev    next >
Text File  |  1992-03-30  |  3KB  |  65 lines

  1. % The Computer Modern Roman family of fonts (by D. E. Knuth, 1979--1985)
  2.  
  3. if ligs>1: font_coding_scheme:="TeX text";
  4.  spanish_shriek=oct"074"; spanish_query=oct"076";
  5. else: font_coding_scheme:=if ligs=0: "TeX typewriter text"
  6.   else: "TeX text without f-ligatures" fi;
  7.  spanish_shriek=oct"016"; spanish_query=oct"017"; fi
  8.  
  9. mode_setup; font_setup;
  10.  
  11. input romanu;  % upper case (majuscules)
  12. input romanl;  % lower case (minuscules)
  13. input greeku;  % upper case Greek letters
  14. input romand;  % numerals
  15. input romanp;  % ampersand, question marks, currency sign
  16. input romspl;  % lowercase specials (dotless \i, ligature \ae, etc.)
  17. input romspu;  % uppercase specials (\AE, \OE, \O)
  18. input punct;  % punctuation symbols common to roman and italic text
  19. input accent;  % accents common to roman and italic text
  20. if ligs>1: input romlig; fi  % letter ligatures
  21. if ligs>0: input comlig; fi  % ligatures common with italic text
  22. if ligs<=1: input romsub; fi  % substitutes for ligatures
  23.  
  24. ligtable "!": "`" =: spanish_shriek;
  25. ligtable "?": "`" =: spanish_query;
  26. font_slant slant; font_x_height x_height#;
  27. if monospace: font_normal_space 9u#; % no stretching or shrinking
  28.  font_quad 18u#;
  29.  font_extra_space 9u#;
  30. else: font_normal_space 6u#+2letter_fit#;
  31.  font_normal_stretch 3u#; font_normal_shrink 2u#;
  32.  font_quad 18u#+4letter_fit#;
  33.  font_extra_space 2u#;
  34.  k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning
  35.  ligtable "k": if serifs: "v": "a" kern -u#, fi\\"w": "e" kern k#,
  36.   "a" kern k#, "o" kern k#, "c" kern k#;
  37.  ligtable "P": "A" kern kk#,
  38.   "y": "o" kern k#, "e" kern k#, "a" kern k#, "." kern kk#, "," kern kk#;
  39.  ligtable "F": "V": "W": if serifs: "o" kern kk#, "e" kern kk#, "u" kern kk#,
  40.     "r" kern kk#, "a" kern kk#, "A" kern kkk#,
  41.    else: "o" kern k#, "e" kern k#, "u" kern k#,
  42.     "r" kern k#, "a" kern k#, "A" kern kk#, fi
  43.   "K": "X": "O" kern k#, "C" kern k#, "G" kern k#, "Q" kern k#;
  44.  ligtable "T": "y" kern if serifs: k# else: kk# fi,
  45.   "Y": "e" kern kk#, "o" kern kk#,
  46.    "r" kern kk#, "a" kern kk#, "A" kern kk#, "u" kern kk#;
  47.  ligtable "O": "D": "X" kern k#, "W" kern k#, "A" kern k#,
  48.    "V" kern k#, "Y" kern k#;
  49.  if serifs: ligtable "h": "m": "n":
  50.    "t" kern k#, "u" kern k#, "b" kern k#, "y" kern k#, "v" kern k#, "w" kern k#;
  51.   ligtable "c": "h" kern k#, "k" kern k#; fi
  52.  ligtable "o": "b": "p": "e" kern -k#, "o" kern -k#, "x" kern k#,
  53.    "d" kern -k#, "c" kern -k#, "q" kern -k#,
  54.   "a": if serifs: "v" kern k#, "j" kern u#, else: "r" kern k#, fi
  55.   "t": "y" kern k#,
  56.   "u": "w" kern k#;
  57.  ligtable "A": if serifs: "R": fi\\ "t" kern k#,
  58.   "C" kern k#, "O" kern k#, "G" kern k#, "U" kern k#, "Q" kern k#,
  59.   "L": "T" kern kk#, "Y" kern kk#, "V" kern kkk#, "W" kern kkk#;
  60.  ligtable "g": "j" kern -k#; % logjam
  61.  ligtable "I": "I" kern -k#; fi % Richard III
  62.  % there are ligature/kern programs for |"f"| in the {\tt romlig} file
  63.  % and for |"-"|, |"`"|, and |"'"| in the {\tt comlig} file
  64. bye.
  65.